﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Os.WebUI.ViewModels.ClienteViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	.: Cadastro de Clientes :.
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="headContent" runat="server">
    <script src="<%= Html.getDiretorioBase() %>Scripts/Loading.js" type="text/javascript"></script>
    <script src="<%= Html.getDiretorioBase() %>Scripts/Cliente.js" type="text/javascript" ></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <h2>Cadastro de Clientes</h2>
    <p>
        Senha requer no minimo <%= Html.Encode(ViewData["PasswordLength"]) %> caracteres.
    </p>
    <% using (Html.BeginForm("Novo","Cliente",FormMethod.Post,new { id = "formCliente"})) { %>
        <div class="field-validation-error" ><%= Html.Encode(ViewData["Result"]) %></div>
        <fieldset>
            <legend>Preencha os campos Abaixo:</legend>
            <%= Html.EditorFor(model => model.user) %>
            <%= Html.EditorFor(model => model.cliente,new {Cidades = Model.cidades,Estados = Model.estados}) %>
            <div class="enviar">
                <input type="submit" value="Salvar" />
            </div>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Voltar para Lista", "Index") %>
    </div>

</asp:Content>

